package cn.seaboot.flake.reverse;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 数据库的字段类型，数据库字段可选的 Java 类型
 *
 * @author ChenSS on 2018/5/6.
 */
public class JdbcTypeMapping implements Serializable {
    private static final long serialVersionUID = 2710042196281679058L;
    /**
     * JDBC 类型
     */
    private String type;
    /**
     * 第一优选类型
     */
    private String suggest;
    /**
     * 其它可选类型
     */
    private String[] others;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSuggest() {
        return suggest;
    }

    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }

    public String[] getOthers() {
        return others;
    }

    public void setOthers(String[] others) {
        this.others = others;
    }

    @Override
    public String toString() {
        return "JdbcTypeMapping{" +
                "type='" + type + '\'' +
                ", suggest='" + suggest + '\'' +
                ", others=" + Arrays.toString(others) +
                '}';
    }
}
